#ifndef __BOMB_H__
#define __BOMB_H__
#include "../include/map.h"

typedef struct s_bomb * t_bomb;

extern t_bomb bomb_new(int x, int y, int power);

//extern void bomb_life (t_bomb bomb);



extern int bomb_display(t_bomb bomb, SDL_Surface *screen);

enum e_time_bomb {
	TIMEBOMB_1 = 0 , TIMEBOMB_2, TIMEBOMB_3, TIMEBOMB_4
};
enum e_explode_bomb {
	EXPLODEBOMB_0 = 4 , EXPLODEBOMB_1, EXPLODEBOMB_2
};

extern void bomb_set_current_timebomb(t_bomb bomb, enum e_time_bomb timebomb);

extern void bomb_set_current_explodebomb(t_bomb bomb, enum e_explode_bomb explodebomb);

extern int bomb_dec_lifetime(t_bomb bomb);


#endif /* __BOMB_H__ */
